package com.dai.zhenfujin.my.activity.setting;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.dai.zhenfujin.R;
import com.dai.zhenfujin.base.BaseActivity;

/**
 * 账号安全页面
 *
 */
public class SecurityActivity extends BaseActivity implements View.OnClickListener{

    private TextView tvTitleName,tvName,tvNumber;
    private ImageView iv;


    private RelativeLayout rlPassword,rlMailbox,rlEquipmentManagemen;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_security);
        initView();
        initListener();
    }

    private void initListener() {
        iv.setOnClickListener(this);
        rlPassword.setOnClickListener(this);
        rlMailbox.setOnClickListener(this);
        rlEquipmentManagemen.setOnClickListener(this);
    }

    private void initView() {
        tvTitleName = findViewById(R.id.title_textview);
        iv = findViewById(R.id.title_imageview);
        tvTitleName.setText("账号安全");

        tvName = findViewById(R.id.security_name);
        tvNumber = findViewById(R.id.security_cell_phone_number);

        rlPassword = findViewById(R.id.security_password);
        rlMailbox = findViewById(R.id.security_mailbox);
        rlEquipmentManagemen = findViewById(R.id.security_equipment_management);




    }

    @Override
    public void onClick(View v) {

        switch (v.getId()){
            case R.id.title_imageview://返回
                finish();
                break;
            case R.id.security_password://去修改密码
                break;
            case R.id.security_mailbox://去绑定邮箱
                break;
            case R.id.security_equipment_management://登录设备管理
                break;
        }
    }
}
